package org.zoomdev.zoom.dao.entity;

import org.zoomdev.zoom.aop.Getter;
import org.zoomdev.zoom.aop.Setter;
import org.zoomdev.zoom.dao.EntityField;

import java.lang.reflect.Field;

public class BeanEntityField extends EntityField {

    private Getter getter;
    private Setter setter;
    private Field field;

    public BeanEntityField() {

    }

    public Setter getSetter() {
        return setter;
    }

    @Override
    public void set(Object target, Object value) {
        setter.set(target, value);
    }

    @Override
    public Object get(Object target) {
        return getter.get(target);
    }

    public Field getField() {
        return field;
    }
}
